﻿<UserControl x:Class="SBPweb.PROvibe.Client.Framework.Entry.RootVisual"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>

        <Storyboard x:Key="LoaderShow" AutoReverse="False">
            <DoubleAnimation
                Storyboard.TargetProperty="Opacity"
                Duration="0:0:1"
                From="0.0"
                To="1.0"
            />
        </Storyboard>

        <Storyboard x:Key="LoaderHide" AutoReverse="False">
            <DoubleAnimation
                Storyboard.TargetProperty="Opacity"
                Duration="0:0:1"
                From="1.0"
                To="0.0"
            />
        </Storyboard>
        
        <Style x:Key="LoaderSplash" TargetType="ContentControl">
            <Setter Property="Cursor" Value="Wait" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ContentControl">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition />
                                <RowDefinition />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <TextBlock Grid.Row="0" Grid.Column="0" Foreground="#FFFFFF" FontSize="46" FontFamily="Resources/che-dust.ttf#Dust Mites" Text="pro" />
                            <TextBlock Grid.Row="0" Grid.Column="1" Foreground="#ADD3EA" FontSize="46" FontFamily="Resources/che-dust.ttf#Dust Mites" Text="vibe" />
                            <TextBlock Grid.Row="1" Grid.ColumnSpan="2" Foreground="#FFFFFF" FontSize="20" FontFamily="Resources/che-dust.ttf#Dust Mites" Text="loading..." HorizontalAlignment="Center" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
            
    </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot">
        <Grid x:Name="Content" />
        <ContentControl x:Name="LoaderSplash" Style="{StaticResource LoaderSplash}" VerticalAlignment="Center" HorizontalAlignment="Center" Visibility="Collapsed" Opacity="0.0" />
    </Grid>
    
</UserControl>
